#include "UdpServer.hpp"
#include <unistd.h>
#include <memory>

void Usage(string proc)
{
    cout << "Usage: " << proc << " + port" << endl;
}
int main(int argc, char *argv[])
{
    if(argc != 2)
    {
        Usage(argv[0]);
        exit(1);
    }
    uint16_t serverport = stoi(argv[1]);

    unique_ptr<UdpServer> us = make_unique<UdpServer>(serverport);
    us->InitServer();
    us->Start();

    return 0;
}